package com.meeruu.sg.account.core.api.service;

import com.meeruu.common.model.result.BaseRpcResult;
import com.meeruu.sg.account.core.api.dto.request.fund.*;

/** 底层账户资金流动接口
 * @Auther: liwu
 * @Date: 2019/5/15 14:06
 * @Description:
 */
public interface IAccountFundService extends AccountCoreFacadeBase {

    /**
     * 充值接口
     */
    BaseRpcResult<Void> charge(ChargeRequest request) ;

    /***
     * 转账操作
     */
    BaseRpcResult<Void> transfer(FundTransRequest request);

    /***
     * 冻结
     */
    BaseRpcResult<String> frozen(FrozenRequest request);

    /***
     * 逆向解冻
     */
    BaseRpcResult<Void> unFrozen(UnFrozenRequest request);

    /***
     * 正向解冻
     */
    BaseRpcResult<Void> unFrozenToOther(UnFrozenToOtherRequest request);

    /***
     * 转账延时操作:出钱方立即扣钱,金钱方只记流水,定时噶擦(主要用于解决消费时,收款账户热点账户问题)
     */
    BaseRpcResult<Void> delayInTransfer(FundDelayInTransRequest request);


}
